#include <stdio.h>
#include <stdlib.h>
#include <string.h>

extern int url_validate_and_to_xml(char *source);

int main(void)
{

	char ch;
        char tmp[1024];
        memset(tmp,0x00,sizeof(tmp));
        int i = 0;
        while((ch = getchar()) != EOF)
        {
                tmp[i] = ch;
                i++;    
        }
	int result = url_validate_and_to_xml(tmp);
	printf("%d\n",result);
	return 0;
}
